import { useMemo } from 'react';
import { Table } from 'antd';
import { getPackTableColumns } from '../mconfig/PackTableColumns';

export const UpdateMaterialCollectData = ({ dataSource }) => {
  return (
    <div
      style={{
        height: '100%',
        overflow: 'hidden',
      }}
    >
      <div className={'list-table'}>
        <Table
          size="small"
          bordered={true}
          rowKey="id"
          scroll={{ x: 1300, y: 1000 }}
          style={{ margin: '0' }}
          columns={getPackTableColumns({ finallyType: 'detail' })}
          dataSource={dataSource}
        ></Table>
      </div>
    </div>
  );
};
